<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
{{assign var="app" value='config'}}
{{assign var="title" value=$result.title|default:'系统配置'}}
<title>{{$title}} - {{'admin|admin_site_name'|C|default:'后台管理'}}</title>
{{include file="include/base.html"}}
{{include file="{{$smarty.const.PLUG}}chosen/chosen.html"}}
{{include file="{{$smarty.const.PLUG}}drag/drag.html"}}
{{include file="{{$smarty.const.PLUG}}verify/verify.html"}}
</head>

<body>

{{include file="include/sidebar.html"}}

<div class="body_right">
<div id="content">
	<div class="search">
		<ul class="bread">
			<li>◆ {{$result.title|default:'添加'}}</li>
		</ul>
	</div>
			
	<!--内容 S-->
	<form action="" name="form" class="verify" method="post">
		<input type="hidden" name="id" value="{{$result.id}}"/>
		<table class="table table-bordered tablest modify">
		  <tbody>
			<tr>
				<td>管理后台名称：</td>
				<td>
					<input class="input-xlarge" name="params[admin_site_name]" type="text" value="{{$result.params.admin_site_name}}"/>
					<span class="notice">admin_site_name</span>
				</td>
			</tr>
			<tr>
				<td>后台Logo：</td>
				<td>
					{{form type="img" name="params[admin_logo]" data=$result.params.admin_logo item="config"}}
					<span class="notice">admin_logo</span>
				</td>
			</tr>
			<tr>
				<td>登录页面背景图：</td>
				<td>
					<label class="radio inline">Style1<input {{if $result.params.login_background=='1'}}checked="checked"{{/if}} name="params[login_background]" type="radio" value="1"></label>
					<label class="radio inline">Style2<input {{if $result.params.login_background=='2'}}checked="checked"{{/if}} name="params[login_background]" type="radio" value="2"></label>
					<label class="radio inline">Style3<input {{if $result.params.login_background=='3'}}checked="checked"{{/if}} name="params[login_background]" type="radio" value="3"></label>
					<label class="radio inline">Style4<input {{if $result.params.login_background=='4'}}checked="checked"{{/if}} name="params[login_background]" type="radio" value="4"></label>
					<label class="radio inline">Style5<input {{if $result.params.login_background=='5'}}checked="checked"{{/if}} name="params[login_background]" type="radio" value="5"></label>
					<label class="radio inline">Style6<input {{if $result.params.login_background=='6'}}checked="checked"{{/if}} name="params[login_background]" type="radio" value="6"></label>
					<label class="radio inline">Style7<input {{if $result.params.login_background=='7'}}checked="checked"{{/if}} name="params[login_background]" type="radio" value="7"></label>
					<label class="radio inline">Style8<input {{if $result.params.login_background=='8'}}checked="checked"{{/if}} name="params[login_background]" type="radio" value="8"></label>
					<label class="radio inline">Style9<input {{if $result.params.login_background=='9'}}checked="checked"{{/if}} name="params[login_background]" type="radio" value="9"></label>
					<label class="radio inline">Style10<input {{if $result.params.login_background=='10'}}checked="checked"{{/if}} name="params[login_background]" type="radio" value="10"></label>
					<span class="notice">login_background</span>
				</td>
			</tr>
			<tr>
				<td>表单模型授权：</td>
				<td>
					<select name="params[form_model][]" class="chosen" data-placeholder="请选择要授权的表单模型分类..." multiple="multiple" style="width:500px;">
					{{foreach from='form_model'|C item=val key=key}}
					<option {{if is_array($result.params.form_model) AND in_array($key,$result.params.form_model)}}selected="selected"{{/if}} value="{{$key}}">{{$key}} {{$val}}</option>
					{{/foreach}}
					<span class="notice">form_model</span>
					</select>
				</td>
			</tr>
			<tr>
				<td>代码版权：</td>
				<td>
					<textarea name="params[copyright]" style="width:432px; height:100px;">{{$result.params.copyright}}</textarea>
					<span class="notice">copyright</span>
				</td>
			</tr>
			<tr>
				<td>系统网址：</td>
				<td>
					<input class="input-xlarge" name="params[website_url]" type="text" value="{{$result.params.website_url}}">
					<span class="notice">website_url（目前用于限制相册清理的环境判断(只有该网址与实际网址相同时才能清理相册）</span>
				</td>
			</tr>
			<tr>
				<td>背景颜色：</td>
				<td>
					<label class="radio inline">无<input {{if !$result.params.body_right_background}}checked="checked"{{/if}} name="params[body_right_background]" type="radio" value=""></label>
					<label class="radio inline">背景a<input {{if $result.params.body_right_background=='bg_a.png'}}checked="checked"{{/if}} name="params[body_right_background]" type="radio" value="bg_a.png"></label>
					<label class="radio inline">背景b<input {{if $result.params.body_right_background=='bg_b.png'}}checked="checked"{{/if}} name="params[body_right_background]" type="radio" value="bg_b.png"></label>
					<label class="radio inline">背景c<input {{if $result.params.body_right_background=='bg_c.png'}}checked="checked"{{/if}} name="params[body_right_background]" type="radio" value="bg_c.png"></label>
					<label class="radio inline">背景d<input {{if $result.params.body_right_background=='bg_d.png'}}checked="checked"{{/if}} name="params[body_right_background]" type="radio" value="bg_d.png"></label>
					<label class="radio inline">背景e<input {{if $result.params.body_right_background=='bg_e.png'}}checked="checked"{{/if}} name="params[body_right_background]" type="radio" value="bg_e.png"></label>
					<span class="notice">body_right_background</span>
				</td>
			</tr>
			<tr>
				<td>后台首页介绍：</td>
				<td>
					<textarea name="params[admin_index_text]" style="width:432px; height:80px;" id='editor1' class="editor">{{$result.params.admin_index_text|encodeHtml}}</textarea>
				</td>
			</tr>
			
		  </tbody>
		</table>
		<div class="bottom_button">
			<button type="submit" class="btn btn-info"><i class="icon-ok icon-white"></i>确认</button>
		</div>
	</form>
	<!--内容 E-->
</div>
</div>
{{include file="{{$smarty.const.PLUG}}ueditor/ueditor.html"}}
</body>
</html>